Page({
  data:{
    punch_record: '/image/system_icon/attendance_record_icon.png',
    using_help: '/image/system_icon/help_icon.png'
  },
  onLoad: function (options) {
    wx.scanCode({
      success: (res) => {
        console.log(res)
        var result = res.result
        //将考勤记录添加到数据库中
        wx.showToast({
          title: '成功',
          icon: 'success',
          duration: 2000
        })
      },
      fail: (res) => {
        wx.showToast({
          title: '失败',
          icon: 'success',
          duration: 2000
        })
      },
      complete: (res) => {
      }
    })
  }
})